﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class wuyun : MonoBehaviour
{
    public GameObject particle;
    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.layer == 8)
        {
            particle.GetComponent<ParticleSystem>().Play();
            other.GetComponent<rocket>().LosePower();
        }
    }
}
